PREVIEW: Today you'll learn how to call functions from within other functions and pass information between them.

  • Click Run to see an example of the project.
  • Duel the evil wizard by selecting a spell and watch what happens. Can you tell which functions are being called?
  • Watch out for the evil wizard's counter attacks. How does the program decide which spell to cast?
  • When you are ready, click Submit and Next to continue.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)